package com.nbsaas.boot.merchant.rest.convert;

import com.nbsaas.boot.merchant.data.entity.MerchantLog;
import com.nbsaas.boot.merchant.api.domain.simple.MerchantLogSimple;

import com.nbsaas.boot.rest.api.Converter;

/**
* 商家操作日志-列表对象转换器
*/

public class MerchantLogSimpleConvert implements Converter<MerchantLogSimple, MerchantLog> {




@Override
public MerchantLogSimple convert(MerchantLog source) {
    MerchantLogSimple result = new MerchantLogSimple();

                result.setMerchantId(source.getMerchantId());
                result.setOperationData(source.getOperationData());
                result.setIpAddress(source.getIpAddress());
                result.setOperationType(source.getOperationType());
                result.setUserAgent(source.getUserAgent());
                result.setId(source.getId());
                result.setOperationDesc(source.getOperationDesc());
                result.setUserId(source.getUserId());
                result.setAddDate(source.getAddDate());
                result.setLastDate(source.getLastDate());


    return result;
}

}